<!DOCTYPE html>
<html lang="zh" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">

</head>
<body>
<div id="app" >
    我{{name}}
    <input type="text" v-model="name">
    <input type="text" v-on:input="show">
    <button v-on:click="show">click me!!</button>
</div>

</body>
<script src="https://unpkg.com/vue@2.5.13/dist/vue.js"></script>
<script>
    var vm = new Vue({
        el:"#app",
        data:{
            name:"python"
        },
        methods : {
            showsomething:function(){
                alert("show something");
            },
            show:function () {
                console.log("123")
            }
        }
    })

</script>
</html>